<template>
	<view>
		<button type="primary">left：{{num}}</button>
	</view>
</template>

<script>
	export default {
		mounted() {
			console.log(11)
			uni.$on("changeNum",(res)=>{
				this.num+=res
				
			})
		},
		name:"left",
		data() {
			return {
				num:0
			};
		}
	}
</script>

<style>

</style>
